from datetime import datetime
from extensions import db

class TokenBlacklist(db.Model):
    __tablename__ = 'token_blacklist'
    
    jti = db.Column(db.String(36), primary_key=True)
    expires = db.Column(db.DateTime, nullable=False)

    def __init__(self, jti, expires):
        self.jti = jti
        self.expires = expires